package com.icss.action.cmt;

import com.icss.action.BaseAction;
import com.icss.service.cmt.CmtService;

/**
 *  报文处理
 * @author shixiaolong
 * @dateJun 12, 2012
 */
public class CmtAction extends BaseAction{

	CmtService cmtService;

	public CmtService getCmtService() {
		return cmtService;
	}


	public void setCmtService(CmtService cmtService) {
		this.cmtService = cmtService;
	}


	public String cmtAuditConfig(){
		request.setAttribute("map",cmtService.getDetail(request));
		return "cmtAuditConfig";
	}
	
	public String cmtAuditConfigSave(){
		request.setAttribute("result", cmtService.save(request));
		return "auditConfigSaveResult";
	}
	
	public String cmtSendEdit(){
		request.setAttribute("bankList",cmtService.recBankList(request));
		return "cmtSendEdit";
	}
	
	public String cmtSendSave(){
		request.setAttribute("result", cmtService.cmtSendSave(request));
		return "cmtSendSaveResult";
	}
	
	/**
	 * 小额大额审核列表
	 * @return
	 */
	public String cmtAuditList(){
		return null;
	}
	
	public String cmtFrame(){
		//把各个银行的余额展示
		request.setAttribute("bankList", cmtService.getBankList(request));
		return "cmtFrame";
	}
}
